import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/about",
    name: "About",
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
  },
  {
    path: "/Add",
    name: "Add",
    component: () => import(/* webpackChunkName: "about" */ "../views/Add.vue"),
  },
  {
    path: "/Del",
    name: "Del",
    component: () => import(/* webpackChunkName: "about" */ "../views/Del.vue"),
  },
  {
    path: "/Change",
    name: "Change",
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/Change.vue"),
  },
  {
    path: "/Find",
    name: "Find",
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/Find.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
